/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uit.jee.lib.bo;

import java.util.ArrayList;
import uit.jee.lib.access.mapper.BookTypeMapper;
import uit.jee.lib.dto.BookTypeDTO;

/**
 *
 * @author ngloc_it
 */
public class BookTypeBO {

    public ArrayList<BookTypeDTO> GetAllBookType() throws Exception{
        BookTypeMapper bookTypeMapper = new BookTypeMapper();
        return bookTypeMapper.GetAllBookType();
    }

    /**
     * Get type name by it's id
     * @param bookTypeId
     * @return
     * @throws Exception
     */
    public String GetBookTypeName(String bookTypeId) throws Exception{
        BookTypeMapper bookTypeMapper = new BookTypeMapper();
        return bookTypeMapper.GetBookTypeName(bookTypeId);
    }
}
